<table width="100%">
    <tr>
        <th><?php echo __('id')?></th>
        <th><?php echo __('name')?></th>
        <th><?php echo __('parent_cat')?></th>
        <th><?php echo __('actions')?></th>
    </tr>
    <?php foreach ($categories as $category): ?>
        <tr class="hoverall">
            <td><?php echo $category['id']; ?></td>
            <td><?php echo $category['category']; ?></td>
            <td><?php echo get_category_name($category['parent_id']); ?></td>
            <td>
                <a href="<?php echo base_url() . 'admin/categories/edit/' . $category['id']; ?>">
                    <img src="<?php echo base_url(); ?>assets/style/img/icons/edit.png" title="Edit"/>
                </a>
                &nbsp;&nbsp;
                <a onclick="return confirm('Are you sure you want to delete?')" href="<?php echo base_url() . 'admin/categories/delete/' . $category['id'].'/'.$off_set; ?>">
                    <img src="<?php echo base_url(); ?>assets/style/img/icons/delete.png" title="Delete"/>
                </a>
            </td>
        </tr>
    <?php endforeach; ?>
    <tr>
        <td colspan="5">
            <?php echo $pagination; ?>
        </td>
    </tr>
</table>